package com.ylr.send.framework.feign.fallback;

import com.ylr.send.framework.feign.SmsBaseClient;
import com.ylr.send.common.dto.SendSmsDto;
import com.ylr.base.common.tool.Result;
import com.ylr.send.common.vo.BatchSendSmsVo;
import com.ylr.send.common.vo.SendSmsVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-09-05 11:00:07
 * className: YsSmsClientFallback 短信发送客户端异常回调类
 * version: 1.0
 * description:
 */
public class YsSmsClientFallback implements SmsBaseClient {

    private static final Logger log = LoggerFactory.getLogger(YsSmsClientFallback.class);

    @Override
    public Result<SendSmsDto> sendSms(SendSmsVo sendSmsVo) {
        log.warn("send模块 => 发送短信请求失败回调");
        return Result.fail();
    }

    @Override
    public Result<SendSmsDto> batchSendSms(BatchSendSmsVo batchSendSmsVo) {
        log.warn("send模块 => 批量发送短信请求失败回调");
        return Result.fail();
    }
}
